package com.cupdata.zicon.my.proxy;

/**
 * AOP的实现
 */
public class MyAOPMethodImpl implements AOPMethod{

    @Override
    public void before() throws Exception {
        System.out.println("执行前");
    }

    @Override
    public void after() throws Exception {
        System.out.println("执行后");
    }

    @Override
    public Object onException(Exception e) throws Exception {
        System.out.println("异常时");
        return null;
    }
}
